<?php
class Fortune {
	static $fortunes = array (
		array ("typical Smarty user", "Smarty does everything I will ever need from template system."),
		array ("typical Zend Framework user", "Nobody should ever need any template system."),
		array ("typical TAL developer", "We know that people love us for creating TAL."),
		array ("typical PhpTAL user", "Most important for template system is to generate valid XHTML document, for any cost, nothing else matters"),
		array ("typical BSD zealot ", "XSLT knowledge separates the boys and template system users from the men"),
	);
    static function get() {
		$key = array_rand(self::$fortunes);
		$fortune = self::$fortunes[$key];
		return array('author'=>$fortune[0], 'text'=>$fortune[1]);
	}
}

